<!-- right-->
<div class="MemberMain">
<div style="margin-right:175px;">

<div class="title"><{t}>Order Details<{/t}></div>
  <div class="note" style='border-width:1px;background:#fff;'>
    <ol>
      <{foreach from=$orderlogs item=action name="orderlog"}>
      <li><span class="date"><{$action.acttime|cdate:FDATE_STIME}></span>&nbsp;&nbsp;&nbsp;&nbsp;<{$action.log_text}></li>
      <{/foreach}>
    </ol>
  </div>
  
    
    <div class='notice' style='border-width:1px;background:#fff;'>
	
   <{if $order.status=='active' && ($order.pay_status == 0 || $order.pay_status == 3)}>
        <h4 class='fontcolorRed'><{t}>You have not completed orders(<{$order.order_id}>).<{/t}></h4>
       
   
       <div style="float:left; width:620px;"><a href="<{link ctl=member act=orderpay arg0=$order.order_id}>"><{t}><image src="statics/btn-payorder.gif" /><{/t}></a>
        &nbsp;&nbsp;&nbsp;&nbsp;<a href="<{link ctl=member act=addOrderMsg arg0=$order.order_id arg1=1}>"><{t}><image src="statics/btn-haspay.gif" /><{/t}></a></div>
   <{/if}>
      <div style="float:left;">   <a href="<{link ctl=member act=addOrderMsg arg0=$order.order_id arg1=0}>"><{t}><image src="statics/btn-question.gif" /><{/t}></a></div>
      <div style=" clear:both;"></div>
      
    </div>
 
  
    <{require file="common/orderinfo.html"}>
    
<{if $ordermsg}>
<div class="FormWrap">
    <h4><{t}>Order Form<{/t}></h4>
    <div class="division">
    <table border="0" cellspacing="0" cellpadding="0" class="liststyle data" width="100%">
    <{foreach from=$ordermsg item=msgitem name="ordermsg"}>
    <tr>

    <td width="25%">
    <strong><{t}>Time:<{/t}></strong><{$msgitem.date_line|usertime}>
    </td>

    <td width="45%">
    <strong><{t}>Title:<{/t}></strong><{$msgitem.subject}>
    </td>

    <td>
    <strong><{t}>Message by:<{/t}></strong><{$msgitem.msg_from}>
    </td>

    </tr>

    <tr>
    <td colspan=3>
    <{$msgitem.message|nl2br}>
    </td>

    </tr>
    <{/foreach}>

    </table>
    </div>
</div>
<{/if}>



<script>
function show_delivery_item(cur_obj,key,item_info){
    if($defined($(cur_obj).getParent().getNext("div[id="+key+"]"))){
        var obj = $(cur_obj).getParent().getNext("div[id="+key+"]");
        if(obj.style.display == 'none'){
        	obj.style.display = '';
        }else{
        	obj.style.display = 'none';
        }
    }else{
        var div1 = new Element("div",{
                'id' : key,
                'style' : 'overflow:hidden;height:100%;',
                'class' : 'note'
            }).inject($(cur_obj).getParent(),'after');
        var div2 = new Element('div',{
                'style' : 'clear:left'
            }).inject(div1);

        item_info.each(function(item){
                new Element('div',{'class':'span-9'}).set('text','Purchase of goods:'+item['name']).inject(div2);
                new Element('div',{'class':'span-9'}).set('text','Quantity:'+item['number']).inject(div2);
            });
    }
}
</script>

</div>
</div>
<!-- right-->
